package com.juvepoland.jpdroid.common;

public enum TabsEnum {
	ALL(1), EVENTS(2), OTHERS(3);
	
	private int index;
	
	public int getIndex(){
		return this.index;
	}
	
	private TabsEnum(int i){
		this.index = i;
	}
	
	public static TabsEnum getTabsEnum(int index){
		for(TabsEnum e : values()){
			if(e.getIndex() == index){
				return e;
			}
		}
		return null;
	}
}
